function scoreFun(object, opts) {
    var defaults = {
        fen_d: 16,
        ScoreGrade: 10,
        nameScore: "fenshu",
        parent: "star_score",
    };
    options = $.extend({}, defaults, opts);
    var startParent = object.find("." + options.parent);
    var now_cli;
    var fen_cli;
    var atu;
    var fen_d = options.fen_d;
    var len = options.ScoreGrade;
    startParent.width(fen_d * len);
    for (var i = 0; i < len; i++) {
        var newSpan = $("<a href='javascript:void(0)'></a>");
        newSpan.css({
            "left": 0,
            "width": fen_d * (i + 1),
            "z-index": len - i
        });
        newSpan.appendTo(startParent)
    }
    if(location.href.indexOf('/workform?') > -1||location.href.indexOf('/workformh5?') > -1){
        startParent.find("a").each(function(index, element) {
            $(this).click(function() {
                now_cli = index;
                show(index, $(this))
            });
        });
        function show(num, obj) {
            var n = parseInt(num) + 1;
            var lefta = num * fen_d;
            var ww = fen_d * n;
            if(obj.parent().find('.clibg').index() != num){
                object.find("a").removeClass("clibg");
                obj.addClass("clibg");
                obj.css({
                    "width": ww,
                    "left": "0"
                });
            }else{
                object.find("a").removeClass("clibg");
            }
        }
    }

}
;